<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ShopCar extends Model
{
    protected $table='shop_car';
    protected $primaryKey='shop_car_id';
    protected $fillable=[
      'user_id','goods_id','num','price',
    ];

    public function my_goods()
    {
        return $this->hasOne('App\Models\Goods','goods_id','goods_id');
    }


}
